package org.jackysoft.struts2.fileserver;

import java.util.Collection;

import javax.annotation.Resource;

import org.apache.struts2.convention.annotation.Namespace;
import org.jackysoft.entity.CustomOrganization;
import org.jackysoft.service.CustomOrganizationService;
import org.jackysoft.struts2.UtilsCRUDAction;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

@Controller
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
@Namespace("/fileflow/group")
public class CustomOrganizationAction extends
UtilsCRUDAction<CustomOrganization> {
	private CustomOrganizationService service;
	private CustomOrganization bean;
	private Collection<CustomOrganization> beans;

	/**
	 * 
	 */
	private static final long serialVersionUID = -8972590882810023656L;

		
	@Resource
	public void setService(CustomOrganizationService custService) {
		this.service = custService;
		this.setDataProvider(custService);
	}

	public CustomOrganizationService getService() {
		return service;
	}

	public CustomOrganization getBean() {
		return bean;
	}

	public void setBean(CustomOrganization bean) {
		this.bean = bean;
	}

	public void setBeans(Collection<CustomOrganization> beans) {
		this.beans = beans;
	}

	public Collection<CustomOrganization> getBeans() {
		return beans;
	}

	

}
